package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"syk/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/user/register", &controllers.UserController{}, "post:Register")
	beego.Router("/user/login", &controllers.UserController{}, "post:Login")
	beego.Router("/medical/add", &controllers.MedicalController{}, "post:Add")
	beego.Router("/medical/list", &controllers.MedicalController{}, "get:List")
	beego.Router("/medical/info", &controllers.MedicalController{}, "get:Info")
	beego.Router("/medical/upZt", &controllers.MedicalController{}, "post:UpZt")
	beego.Router("/medical/rank", &controllers.MedicalController{}, "get:Rank")
}
